<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <META http-equiv="Content-Type" content="text/html;charset=UTF-8"> 
  </head>
  <title>Registo de inmueble</title>
  <body>
  <font color="green"><s:actionmessage/></font>
  <div align="center">
    
    <h2>Alta de inmueble</h2><h1></h1>
 
    <s:form action="registerHome"  method="post" enctype="multipart/form-data">
	  <s:textfield label="Tamaño" name="area" key="area" size="19" ></s:textfield>
      <s:doubleselect
        label="Autonomía/Ciudad"  
        list="statecityMap.keySet()"   doubleList="statecityMap.get(top)"
        name="stateId"                 doubleName="cityId"/>  
	  <s:radio label="Jardin" list="#{'1':'Sí','2':'No'}" value="2" name="listGarden"></s:radio>
	  <s:textfield label="Precio" name="cost" key="cost" size="19" ></s:textfield>
	  <s:file name="picture" label="Imagen"/>
	  <s:textarea name="description" label="descripción"></s:textarea>
	  <s:submit type="button" label="Alta" method="execute" align="right" ></s:submit>
	  <font color="red"> <s:actionerror/> </font>
    </s:form> 
  </div>
  </body>
</html>